home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re FW_CString.5 < prev    next >
Encoding:
Internet Message Format  |  1996-08-20  |  790 b   |  [TEXT/ttxt]

  1. Subject:     Re: FW_CString
  2. Sent:        8/20/96 9:23 AM
  3. Received:    8/20/96 9:31 AM
  4. From:        Mary Boetcher, boetche1@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >There does not appear to be a coversion for FW_CString to and from a
  9. >pascal string.
  10.  
  11. You can use these FW_CString functions:
  12.   void ExportPascal(FW_PascalChar* buffer) const;
  13.   void ReplaceAll(const FW_PascalChar* string);
  14.  
  15. To convert from an FW_CString to a Pascal string, call ExportPascal:
  16.  
  17.   Str255 pascalString;
  18.   FW_CString string("Test");
  19.   string.ExportPascal(pascalString);
  20.  
  21. To create an FW_CString from a Pascal string, do this:
  22.  
  23.   FW_CString string;
  24.   string.ReplaceAll(pascalString);
  25.  
  26. Mary Boetcher
  27. ODF Person
  28.